package com.ych.dao;

import com.ych.beans.Sensor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SensorDao {
    boolean addSensor(Sensor sensor);

    boolean deleteSensor(Integer id);

    boolean updateSensor(Sensor sensor);

    List<Sensor> selectSensor(String key);
}
